package org.example.design.chain.service;

import java.util.Date;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Classname AuthService
 * @Description 模拟审核服务
 * @Date 2020/11/6 10:14 上午
 * @Created by xiangjd
 */
public class AuthService {
    private static Map<String, Date> authMap = new ConcurrentHashMap<String, Date>();

    public static Date queryAuthInfo(String uid, String orderId) {
        return authMap.get(uid.concat(orderId));
    }

    public static void auth(String uid, String orderId) {
        authMap.put(uid.concat(orderId), new Date());
    }

}
